home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / programr / ole2book.zip / CHAP09.ZIP / CHAP09 / PATRON / RESOURCE.H < prev    next >
C/C++ Source or Header  |  1993-06-13  |  5KB  |  135 lines

  1. /*
  2.  * RESOURCE.H
  3.  * Modifications for Chapter 9
  4.  *
  5.  * Definitions specifically pertaining to resources.
  6.  *
  7.  * Copyright (c)1993 Microsoft Corporation, All Rights Reserved
  8.  *
  9.  * Kraig Brockschmidt, Software Design Engineer
  10.  * Microsoft Systems Developer Relations
  11.  *
  12.  * Internet  :  kraigb@microsoft.com
  13.  * Compuserve:  >INTERNET:kraigb@microsoft.com
  14.  */
  15.  
  16.  
  17.  
  18. #ifndef _RESOURCE_H_
  19. #define _RESOURCE_H_
  20.  
  21. //Note that we augment classlib.h which we include before this.
  22.  
  23.  
  24. //Position of Window menu.
  25. #undef  WINDOW_MENU
  26. #define WINDOW_MENU                 3
  27.  
  28. //CHAPTER9MOD
  29. //Position of the "Object" item on the Edit menu.
  30. #define MENUPOS_OBJECT              10
  31. #define MENUPOS_OBJECTONPOPUP       5
  32.  
  33. //Popup menu
  34. #define IDR_RIGHTPOPUPMENU          2
  35. //End CHAPTER9MOD
  36.  
  37.  
  38. //Total number of menus
  39. #undef  CMENUS
  40. #define CMENUS                      4
  41.  
  42.  
  43. //Menu command identifiers.
  44.  
  45. #define IDM_FILEPRINT               (IDM_CUSTOMFILEMIN)
  46. #define IDM_FILEPRINTERSETUP        (IDM_CUSTOMFILEMIN+1)
  47.  
  48. #define IDM_EDITPASTESPECIAL        (IDM_CUSTOMEDITMIN)
  49. #define IDM_EDITDELETEOBJECT        (IDM_CUSTOMEDITMIN+1)
  50. //CHAPTER9MOD
  51. #define IDM_EDITINSERTOBJECT        (IDM_CUSTOMEDITMIN+2)
  52. #define IDM_EDITOBJECT              (IDM_CUSTOMEDITMIN+3)
  53. //End CHAPTER9MOD
  54.  
  55. #define IDM_PAGENEWPAGE             (IDM_CUSTOMMIN)
  56. #define IDM_PAGEDELETEPAGE          (IDM_CUSTOMMIN+1)
  57. #define IDM_PAGENEXTPAGE            (IDM_CUSTOMMIN+2)
  58. #define IDM_PAGEPREVIOUSPAGE        (IDM_CUSTOMMIN+3)
  59. #define IDM_PAGEFIRSTPAGE           (IDM_CUSTOMMIN+4)
  60. #define IDM_PAGELASTPAGE            (IDM_CUSTOMMIN+5)
  61.  
  62.  
  63. //CHAPTER9MOD
  64. //This special item is for the dynamic verbs on the Edit/Object item.
  65. #define IDM_VERBMIN                 (IDM_CUSTOMMIN+100)
  66. #define IDM_VERBMAX                 (IDM_CUSTOMMIN+200)
  67. //End CHAPTER9MOD
  68.  
  69.  
  70. /*
  71.  * IDs for StatStrip handling of popup menus:  must be in order of menu
  72.  * CLASSRES.H already defines ID_MENUFILE and ID_MENUEDIT for us.
  73.  */
  74.  
  75. #undef ID_MENUWINDOW
  76. #undef ID_MENUHELP
  77.  
  78. #define ID_MENUPAGE                 (ID_STANDARDMAX+3)
  79. #define ID_MENUWINDOW               (ID_STANDARDMAX+4)
  80. #define ID_MENUHELP                 (ID_STANDARDMAX+5)
  81.  
  82.  
  83. //Stringtable IDs.  Keep sequential for each group.
  84. #define IDS_FRAMEMIN                IDS_STANDARDFRAMEMIN
  85. #define IDS_FRAMEMAX                IDS_STANDARDFRAMEMAX
  86.  
  87. #define IDS_DOCUMENTMIN             IDS_STANDARDDOCMIN
  88. #define IDS_PRINTERROR              (IDS_STANDARDDOCMAX+1)
  89. #define IDS_DOCUMENTNAME            (IDS_STANDARDDOCMAX+2)
  90.  
  91. #define IDS_PASTEASPATRON           (IDS_STANDARDDOCMAX+3)
  92. #define IDS_PASTEMETAFILE           (IDS_STANDARDDOCMAX+4)
  93. #define IDS_PASTEASMETAFILE         (IDS_STANDARDDOCMAX+5)
  94. #define IDS_PASTEDIB                (IDS_STANDARDDOCMAX+6)
  95. #define IDS_PASTEASDIB              (IDS_STANDARDDOCMAX+7)
  96. #define IDS_PASTEBITMAP             (IDS_STANDARDDOCMAX+8)
  97. #define IDS_PASTEASBITMAP           (IDS_STANDARDDOCMAX+9)
  98. #define IDS_DOCUMENTMAX             (IDS_STANDARDDOCMAX+9)
  99.  
  100. //These are specifically for the StatStrip
  101. #define IDS_STATMESSAGEMIN                  IDS_STANDARDSTATMESSAGEMIN
  102.  
  103. #define IDS_ITEMMESSAGEFILEPRINT            (IDS_STANDARDSTATMESSAGEMAX+1)
  104. #define IDS_ITEMMESSAGEFILEPRINTERSETUP     (IDS_STANDARDSTATMESSAGEMAX+2)
  105.  
  106. #define IDS_MENUMESSAGEPAGE                 (IDS_STANDARDSTATMESSAGEMAX+3)
  107. #define IDS_ITEMMESSAGEPAGENEWPAGE          (IDS_STANDARDSTATMESSAGEMAX+4)
  108. #define IDS_ITEMMESSAGEPAGEDELETEPAGE       (IDS_STANDARDSTATMESSAGEMAX+5)
  109. #define IDS_ITEMMESSAGEPAGENEXTPAGE         (IDS_STANDARDSTATMESSAGEMAX+6)
  110. #define IDS_ITEMMESSAGEPAGEPREVIOUSPAGE     (IDS_STANDARDSTATMESSAGEMAX+7)
  111. #define IDS_ITEMMESSAGEPAGEFIRSTPAGE        (IDS_STANDARDSTATMESSAGEMAX+8)
  112. #define IDS_ITEMMESSAGEPAGELASTPAGE         (IDS_STANDARDSTATMESSAGEMAX+9)
  113.  
  114. #define IDS_ITEMMESSAGEEDITPASTESPECIAL     (IDS_STANDARDSTATMESSAGEMAX+10)
  115. #define IDS_ITEMMESSAGEEDITDELETEOBJECT     (IDS_STANDARDSTATMESSAGEMAX+11)
  116. //CHAPTER9MOD
  117. #define IDS_ITEMMESSAGEEDITINSERTOBJECT     (IDS_STANDARDSTATMESSAGEMAX+12)
  118. #define IDS_ITEMMESSAGEEDITOBJECT           (IDS_STANDARDSTATMESSAGEMAX+13)
  119. #define IDS_STATMESSAGEMAX                  (IDS_STANDARDSTATMESSAGEMAX+14)
  120. //End CHAPTER9MOD
  121.  
  122. //Definitions for the printing dialog.
  123.  
  124. #define IDD_PRINTING                2
  125.  
  126. #define ID_CURRENTPAGE              101
  127. #define ID_CURRENTCOPY              102
  128. #define ID_COPYSTRING               103
  129. #define ID_PAGESTRING               104
  130.  
  131. #define PRINTM_PAGEUPDATE           (WM_USER+100)
  132. #define PRINTM_COPYUPDATE           (WM_USER+101)
  133.  
  134. #endif //_RESOURCE_H_
  135.